<?php


namespace App\Exceptions;


use Symfony\Component\HttpKernel\Exception\HttpException;

class MessageException extends HttpException
{
    /**
     * MessageException constructor.
     * @param string|null $message
     * @param \Throwable|null $previous
     * @param int $code
     * @param array $headers
     */
    public function __construct($message = '', \Throwable $previous = null, $code = 0, $headers = [])
    {
        parent::__construct(422, $message, $previous, $headers, $code);
    }

}
